<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><META name="CODE_LANGUAGE" Content="C#"><META name="vs_defaultClientScript" content="JavaScript"><META name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<?XML:NAMESPACE PREFIX="DIMOK"/>
<?IMPORT namespace="DIMOK" implementation="/include/HTC/ShowRS.htc" >
<SCRIPT src="/include/common.js"></SCRIPT>
<SCRIPT src="/include/events.js"></SCRIPT>
<SCRIPT>document.write("<TITLE>"+getParam("title")+"</TITLE>");</SCRIPT>
<STYLE>
TABLE {font:menu}
TD {white-space:nowrap}
.rowover{BEHAVIOR: url(/include/HTC/rowover_js.htc)}
</STYLE>
</HEAD>
<BODY scroll="no" onkeypress="if(event.keyCode==27)top.close()">
<DIMOK:SHOW_RS id="showRS" onselect="onSelectRow(event)" search="false">
	<DIV id="divListTempl" style="BORDER-RIGHT:appworkspace 0px solid; BORDER-TOP:appworkspace 0px solid; DISPLAY:none; BORDER-LEFT:appworkspace 0px solid; BORDER-BOTTOM:appworkspace 0px solid">
		<TABLE id="tblTempl" onreadystatechange="cropWindow()" border="1" cellpadding="0" onresize=""
			cellspacing="0" bordercolor="white" hiddenFields="ID,Name"
			style="DISPLAY:none;WIDTH:100%;BORDER-COLLAPSE:collapse;BACKGROUND-COLOR: whitesmoke"
			rowover="1" striped="0" selectable="1">
			<thead><tr><th clone></th></tr></thead>
			<TBODY>
				<TR align="left" style="CURSOR:hand">
					<TD align="left" onclick="onSelect(this)" clone=" " nowrap><SPAN datafld="*" style="MARGIN-LEFT: 2px;MARGIN-Right: 2px" dataformatas="html"></SPAN></TD>
					<td onclick="onSelect(this)"><img src='/images/Buttons/dickette.png' onclick="doSave=true"></td>
					<td onclick="onSelect(this)"><img src='/App_Themes/Office2007/Grid/Delete.gif' onclick="doDelete=true"></td>
				</TR>
			</TBODY>
		</TABLE>
	</DIV>
</DIMOK:SHOW_RS>
</BODY>
</HTML>
<SCRIPT language="javascript">
var servicePath = unescape(getParam("servicePath"));
var serviceFunc = unescape(getParam("serviceFunc"));
var funcParams = (dialogArguments || {}).funcParams;
showRS.servicePath = servicePath;
showRS.serviceFunc = serviceFunc;
showRS.funcParams = funcParams;
var doDelete = false;
var doSave = false;
function onSelectRow() {
	if (doDelete) {
		doDelete = false;
		if (!confirm("Sure?")) return;
		var ret = dialogArguments.deleteDoc(event.rs("ID").Value);
		if (ret == null) event.rs.Delete();
	} else
		dialogArguments.showDoc(event.rs("ID").Value, event.rs("Name").Value, doSave);
	doSave = false;
}
</SCRIPT>
